package cn.shop.cloud.web.redis;


import cn.shop.cloud.redis.KeyPrefix;

/**
 * @program: work
 * @ClassName SeckillKeyPrefix
 * @description:
 * @author: 李尧坤
 * @create: 2025−01-10 15:03
 * @Version 1.0
 **/

public class SeckillKeyPrefix implements KeyPrefix {

    private String prefix;

    private int expireSeconds;



    @Override
    public String getPrefix() {
        return prefix;
    }

    @Override
    public int getExpireSeconds() {
        return expireSeconds;
    }


    public SeckillKeyPrefix(String prefix, int expireSeconds) {
        this.prefix = prefix;
        this.expireSeconds = expireSeconds;
    }


    public static  final SeckillKeyPrefix SECKILL_STOCK_COUNT =
            new SeckillKeyPrefix("seckillCount",-1);


    public static  final SeckillKeyPrefix SECKILL_GOOD_HASH =
            new SeckillKeyPrefix("seckillGoodHash",-1);


}
